package com.zhiche.lisa.lspm.dao.model.lsp;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 承运商卡信息（油卡）
 * </p>
 *
 * @author qichao
 * @since 2018-06-27
 */
@TableName("lisa_lsp_card")
public class LspCard extends Model<LspCard> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 卡号
     */
	@TableField("card_sn")
	private String cardSn;
    /**
     * 发卡方类型
     */
	@TableField("issuer_type")
	private Long issuerType;
    /**
     * 承运商ID
     */
	@TableField("lsp_id")
	private Long lspId;
    /**
     * 备注
     */
	@TableField("card_info")
	private String cardInfo;
    /**
     * 卡类型
     */
	@TableField("card_type")
	private Long cardType;
    /**
     * 租户ID
     */
	@TableField("tenant_id")
	private Long tenantId;

	private String creator;
	/**
	 * 创建时间
	 */
	@TableField("gmt_create")
	private Date gmtCreate;
	/**
	 * 更新时间
	 */
	@TableField("gmt_modify")
	private Date gmtModify;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCardSn() {
		return cardSn;
	}

	public void setCardSn(String cardSn) {
		this.cardSn = cardSn;
	}

	public Long getIssuerType() {
		return issuerType;
	}

	public void setIssuerType(Long issuerType) {
		this.issuerType = issuerType;
	}

	public Long getLspId() {
		return lspId;
	}

	public void setLspId(Long lspId) {
		this.lspId = lspId;
	}

	public String getCardInfo() {
		return cardInfo;
	}

	public void setCardInfo(String cardInfo) {
		this.cardInfo = cardInfo;
	}

	public Long getCardType() {
		return cardType;
	}

	public void setCardType(Long cardType) {
		this.cardType = cardType;
	}

	public Long getTenantId() {
		return tenantId;
	}

	public void setTenantId(Long tenantId) {
		this.tenantId = tenantId;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtModify() {
		return gmtModify;
	}

	public void setGmtModify(Date gmtModify) {
		this.gmtModify = gmtModify;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "LspCard{" +
				"id=" + id +
				", cardSn='" + cardSn + '\'' +
				", issuerType=" + issuerType +
				", lspId=" + lspId +
				", cardInfo='" + cardInfo + '\'' +
				", cardType=" + cardType +
				", tenantId=" + tenantId +
				", creator='" + creator + '\'' +
				", gmtCreate=" + gmtCreate +
				", gmtModify=" + gmtModify +
				"} " + super.toString();
	}
}
